package com.fjl.javatest;

import java.util.Random;

public class RandomTest {
	public static void main(String[] args) {
		
		new Thread(new Runnable() {
			
			@Override
			public void run() {
				int index = 0;
				while(!Thread.currentThread().isInterrupted()){
					float test = new Random().nextInt(6);
					System.out.println(test);
				}
				
			}
		}).start();
	}

}
